# a,b = input('请输入两个数，中间用空格隔开：').split()
# a = int(a)b=int(b)


h,a = input('请输入高度和底边长度：').split()
h=int(h)
a=int(a)
i = 3
num=1
print('*'.center(50))
while i<=h:
    s = (a-1)/(h-1)

    num =int (num+s)

    print(('*'*num).center(50))
    i+=1
print(('*'*a).center(50))


a=100
sum = 0
while a>0:
    sum = a+sum
    a-=1
print('任务结束','sum的值为:',sum)

j=0
while j<=4:
    i = 0
    while i<=4:
        print('*',end=' ')
        i+=1
    print()
    j+=1


a = input('请输入一个字符：')
print(ord(a))



s = int(input('请输入距离：'))
tBike = s/3+50
tWalk = s/1.2
if tBike<tWalk:
    print('Bike')
elif tBike>tWalk:
    print('Walk')
else:
    print('一样快')

i = 1
j = 1
while j<10:
    i=1
    while i<=j:
        print(f'{i}*{j}={i*j}',end = '\t ')
        i+=1
    print()
    j+=1


str1 = 'itheima'
for i in str1:
    if i =='e':
        print('遇到e不打印')
        break
    print(i)


n=4
l = 70
r = 85
w=[10,10,20,50]
i=0
sum1=0
while i <4:
    m=1
    while (i+m)<4:
        n=2
        while (i+n)<4:
            sum = w[i]+w[i+m]+w[i+n]
            if l<sum<r:
                sum1=sum1+1
                print(w[i],w[i+m],w[i+n])
            n=n+1
        m=m+1
    i=i+1
print(sum1)